﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="PartContentSet.aspx.cs" Inherits="Besture.UI.Admin.Content.PartContentSet" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="editPage">
        <!-- Begin 选项卡 -->
        <div class="tab-wrap">
            <ul class="tab">
                <li class="on" onclick="setTab(this,0)"><a href="javascript:void(0)" title="基本信息">基本信息</a></li>
                <li runat="server" id="Seo" onclick="setTab(this,1)"><a href="javascript:void(0)"
                    title="SEO信息">SEO信息</a></li>
            </ul>
        </div>
        <!-- //End 选项卡 -->
        <div class="tab-ct-wrap">
            <!-- Begin 选项卡1 -->
            <div class="tab1">
                <table class="table-module01" cellpadding="0" cellspacing="0">
                    <tbody>
                        <tr runat="server" id="BelongsColumn">
                            <th width="130" align="right">
                                所属栏目：
                            </th>
                            <td>
                                <cms:Part runat="server" ID="ControlPart" _TypeID="0" ShowSelectButton="True" ShowCurrentPart="True" />
                            </td>
                        </tr>
                        <tr runat="server" id="Type" style="display: none">
                            <th width="130" align="right">
                                类型：
                            </th>
                            <td>
                                <img src='/Admin/Themes/Images/dispensable.png' align='absMiddle' /><input type="radio"
                                    name="rdlType" value="1" id="radioNormal" checked="checked" />
                                <label for="radioNormal">
                                    文章</label>
                                <input type="radio" name="rdlType" value="2" id="radioContent" />
                                <label for="radioContent">
                                    内容</label>
                                <input type="radio" name="rdlType" value="3" id="radioPhoto" />
                                <label for="radioPhoto">
                                    图片</label>
                                <input type="radio" name="rdlType" value="4" id="radioVideo" />
                                <label for="radioVideo">
                                    视频</label>
                            </td>
                        </tr>
                        <tr runat="server" id="trTitle">
                            <th width="130" align="right">
                                标题：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="Name"  Required="True" MaxLength="200"
                                    WidthExt="Width_400"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="DeputyTitle">
                            <th width="130" align="right">
                                副标题：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="SubName" MaxLength="200" WidthExt="Width_400"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="ImageUrl">
                            <th width="130" align="right">
                                图片：
                            </th>
                            <td>
                                <cms:UploadSinglePhoto runat="server" ID="ControlImage" Tips="请上传图片（1920*430）" />
                            </td>
                        </tr>
                        <tr runat="server" id="BlackWhiteImageUrl">
                            <th width="130" align="right" id="thName">
                                <%=PartID == "111" ? "旗下背景图片：" : "彩色图片："%>
                            </th>
                            <td>
                                <cms:UploadSinglePhoto runat="server" ID="BlackWhiteImageUrlImage" Tips="请上传图片（1920*430）" />
                            </td>
                        </tr>
                        <tr runat="server" id="PictureUrl">
                            <th width="130" align="right">
                                品牌图片：
                            </th>
                            <td>
                                <cms:UploadSinglePhoto runat="server" ID="PictureUrlImgae" Tips="请上传图片（70*70）" />
                            </td>
                        </tr>
                        <tr runat="server" id="LinkUrl">
                            <th width="130" align="right">
                                链接地址：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="txtLinkUrl" MaxLength="200" WidthExt="Width_400" ValidateExt="Url"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="FileUrl">
                            <th width="130" align="right">
                                上传文件
                            </th>
                            <td>
                                <cms:UploadSingleFile ID="UploadFile" runat="server"   />
                            </td>
                        </tr>
                        <tr runat="server" id="trReleaseTime">
                            <th width="130" align="right">
                                发布日期：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="ReleaseTime" Required="True" WidthExt="Width_200"
                                    ValidateExt="Date"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="trAuthor">
                            <th width="130" align="right">
                                作者：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="Author" MaxLength="200" WidthExt="Width_200"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="trPreface">
                            <th width="130" align="right">
                                导读：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="Preface" MaxLength="400" WidthExt="Width_400" Height="100"
                                    TextMode="MultiLine"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="trDetail">
                            <th width="130" align="right">
                                内容：
                            </th>
                            <td>
                                <cms:RichText ID="Detail" runat="server" RichTextName="Detail"></cms:RichText>
                            </td>
                        </tr>
                        <tr runat="server" id="trHits">
                            <th width="130" align="right">
                                点击：
                            </th>
                            <td>
                                <cms:TextBox runat="server" ID="Hits" WidthExt="Width_50" ValidateExt="Number" Text="0"></cms:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="IsDisplay">
                            <th width="130" align="right">
                                属性：
                            </th>
                            <td>
                                <cms:ASPxCheckBox runat="server" ID="cbIsDisplay" Text="显示">
                                </cms:ASPxCheckBox>
                                <cms:ASPxCheckBox runat="server" ID="cbWebStick" Text="置顶">
                                </cms:ASPxCheckBox>
                                <cms:ASPxCheckBox runat="server" ID="cbClassStick" Text="栏目置顶">
                                </cms:ASPxCheckBox>
                            </td>
                        </tr>
                        <tr runat="server" id="sort">
                            <th width="130" align="right">
                                排序编号：
                            </th>
                            <td>
                                <img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' />
                                <asp:TextBox runat="server" Width="50px" style="text-align:right;" CssClass="required input-text digits" MaxLength="6"
                                    ID="txtSort"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th width="130" align="right">
                                &nbsp;
                            </th>
                            <td>
                                <span class="btn-sure-wrap">
                                    <asp:Button runat="server" ID="btnSubmit" CssClass="btn-sure btn-edit" Text="保存"
                                        OnClick="btnSubmit_Click" /></span> <span class="btn-cancel-wrap">
                                            <input type="button" class="btn-cancel" value="取消" onclick="location.href='<%=ListUrl() %>?partid=<%=PartID %>'" /></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!-- //End 选项卡1 -->
            <div class="tab1" style="display: none;">
                <cms:Seo ID="ControlSeo" runat="server" />
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            //                    $('input[name="rdlType"]').each(function () {
            //                        $(this).click(function () {
            //                            $(".TrClass").hide();
            //                            var $selectedvalue = $(this).attr("value");
            //                            //文章
            //                            if ($selectedvalue == "1") {
            //                                $(".Article").show();
            //                                $("#hidFieldType").val("1");
            //                            }
            //                            //内容
            //                            else if ($selectedvalue == "2") {
            //                                $(".Content").show();
            //                                $("#hidFieldType").val("2");
            //                            }
            //                            //图片
            //                            else if ($selectedvalue == "3") {
            //                                $(".Photo").show();
            //                                $("#hidFieldType").val("3");
            //                            }
            //                            //视频
            //                            else if ($selectedvalue == "4") {
            //                                $(".Video").show();
            //                                $("#hidFieldType").val("3");
            //                            }
            //                          
            //                        });
            //                    });
            //                    $('input[name="rdlType"]').eq(<%=_TypeID %>).click();
        });


        function RadioClick(index) {
            $('input[name="rdlType"]').eq(index).click();
        }

        

    </script>
</asp:Content>
